|
|
|
|
|
|
|
Note On Day 11, Enhancing the Application, you'll see how to create custom ActiveX controls. Use these data forms as a guide so that you can add these dialog boxes into the Explorer interface without it looking as though separate forms were in the application. |
|
|
|
|
|
|
|
|
|
Next, you want to reuse the Data Form Wizard for the data-entry form; however, you want to use the DAO binding methods and a single-record display for this form (because you'll be adding more code and controls to this form later this week). By using DAO access, you get much more flexibility in design and coding. Also, you want to choose every field from the Address Entry table, except for Entry Key and the DateUpdated. These fields are used by the application, and users doesn't need to see them. You also want to sort by the Entry Key field. Finally, you want to accept the default buttons for the form. Accept the default form name and click Finish button to create the form as shown in Figure 8.13. |
|
|
|
|
|
|
|
|
Figure 8.13.
The data-entry form has every field from the
Address Entry table. |
|
|
|
|
|
|
|
|
Remember to add the menu option and toolbar buttons to allow users to display the data-entry form. After you complete this step, you're almost finished. The final step is to add the unrelated forms to the application. |
|
|
|
|
|
|
|
|
The only forms left to addif you haven't been keeping trackare Search and Report Selection. The Search form is pretty easy; the code behind it, however, is a bit tougher. For now, create the form as shown in Figure 8.3 earlier in this lesson. The only line of code you need to add to the form now is the code in the Close command button's click event to unload the form. |
|
|
|
|
|